#include <iostream>
using namespace std;
int main()
{
	int a = 0x1234;
	cout << a << endl;
	char b = *(char*)&a;
	cout << (b == 0x12 ? "大端" : "小端") << endl;
}
